package com.remoter.basic.serialize;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;

import com.remoter.basic.util.ServiceLoader.SPI;

/**
 * @author			koko
 * @date 			2017-08-08 14:25:43
 * @description 	序列化扩展点
 */
@SPI
public interface ISerialization {
	
	public void serialize(Object data,OutputStream outputStream,Class<?> type)throws IOException;
	public Object deserialize(InputStream inputStream,Class<?> type)throws IOException;
	
}